@echo off
rem 将修改添加到了暂存区中
git add .

rem 提交
rem 获取当前日期和时间
for /f "tokens=1-3 delims=.-/ " %%a in ('echo %DATE%') do (
    set "day=%%a"
    set "month=%%b"
    set "year=%%c"
)

for /f "tokens=1-4 delims=:. " %%a in ('echo %TIME%') do (
    set "hour=%%a"
    set "minute=%%b"
    set "second=%%c"
    set "millisecond=%%d"
)
rem 构建日期时间字符串
set "datetime=%day%-%month%-%year% %hour%:%minute%:%second%%"
rem 将日期时间作为提交消息提交到git
git commit -m "Commit on %datetime%"


rem git commit -m 'update-%date% %time%'
rem 推送
git push weixinPrtSc master

echo push time :  %datetime%



pause